//引入请求api
import { searchListRequest } from "@/api";

export default {
  //在actions中请求数据，并调用mutations的方法将数据设置给state
  async getSearchList({ commit }, searchParams) {
    const result = await searchListRequest(searchParams);
    commit("SET_SEARCH_LIST_STATE", result);
  },
};
